package cn.com.selfsoft.smartcity.commons.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.time.LocalDateTime;

/**
 * 抽象的key-value审计实体
 *
 */
public abstract class AbstractKeyValueAuditingEntity extends AbstractKeyValueEntity {
	
	private static final long serialVersionUID = 2534339016136384288L;
	
	@JsonIgnore
	private LocalDateTime createdAt;
	
	@JsonIgnore
	private String createdBy;
	
	@JsonIgnore
	private LocalDateTime lastUpdatedAt;
	
	@JsonIgnore
	private String lastUpdatedBy;
	
	@JsonIgnore
	private Integer version;
	
	public AbstractKeyValueAuditingEntity() {
		
	}

	public LocalDateTime getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(LocalDateTime createdAt) {
		this.createdAt = createdAt;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public LocalDateTime getLastUpdatedAt() {
		return lastUpdatedAt;
	}

	public void setLastUpdatedAt(LocalDateTime lastUpdatedAt) {
		this.lastUpdatedAt = lastUpdatedAt;
	}

	public String getLastUpdatedBy() {
		return lastUpdatedBy;
	}

	public void setLastUpdatedBy(String lastUpdatedBy) {
		this.lastUpdatedBy = lastUpdatedBy;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

}
